package com.wu.family.model;

import android.os.Parcel;
import android.os.Parcelable;

public class ParcelUser implements Parcelable {  
    private String userName;  
    private String password;  
    public ParcelUser() {  
    }  
    public ParcelUser(String userName, String password) {  
        this.userName = userName;  
        this.password = password;  
    }  
    public String getUserName() {  
        return userName;  
    }  
    public void setUserName(String userName) {  
        this.userName = userName;  
    }  
    public String getPassword() {  
        return password;  
    }  
    public void setPassword(String password) {  
        this.password = password;  
    }  
    public static final Parcelable.Creator<ParcelUser> CREATOR = new Creator<ParcelUser>() {  
        @Override  
        public ParcelUser createFromParcel(Parcel source) {  
            ParcelUser parcelableUser = new ParcelUser();  
            parcelableUser.userName = source.readString();  
            parcelableUser.password = source.readString();  
            return parcelableUser;  
        }  
        @Override  
        public ParcelUser[] newArray(int size) {  
            return new ParcelUser[size];  
        }  
    };  
    @Override  
    public int describeContents() {  
        // TODO Auto-generated method stub  
        return 0;  
    }  
    @Override  
    public void writeToParcel(Parcel dest, int flags) {  
        // TODO Auto-generated method stub  
        dest.writeString(userName);  
        dest.writeString(password);  
    }  
}  
